package com.hr.demo.utils;

public class UploadUtil {
    /**
     * 文件名称替换工具，将文件名称替换为随机名称
     * @param oldName
     * @return
     */
    public static String generateFileName(String oldName){
    return IDUtil.generateUniqueId()+oldName.substring(oldName.lastIndexOf("."));
    }
}
